package com.cqc.jdk8.Jlang;

import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

/**
 * @author cui
 * @date 2025/6/17 19:40
 * @description
 **/
public class IntegerTest {

    @Test
    public void test() {
        List<Integer> list = new ArrayList<Integer>();
        list.add(3);
        list.add(20);
        list.add(30);
        list.add(40);
        //boolean remove(Object o); 参数是对象，3是int类型，不是对象。只能自动封箱成Integer
        list.remove(3);
        System.out.println(list);
    }
}
